package com.example.yjhvideo.client;

import com.example.yjhuser.entity.Comment;
import com.yc.yjh.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(value = "yjh-user")
@RequestMapping("/comment")
public interface userClient {

    @GetMapping("/video/byId")
    public Result getAllVideoCommentById(@RequestParam("id") String id);

    @PostMapping("/set")
    public Result setComment(@RequestBody Comment comment);

    @GetMapping("/del")
    public  Result setComment(@RequestParam("id") String id);

    }




